package MultiplePrimeryKey;

import java.sql.Timestamp;

public class CommFlow implements java.io.Serializable {

	private static final long serialVersionUID = 248470960744972897L;

	private CommFlowId id;
	private Integer channelType;
	private Integer connectedTimes;
	private Integer successTimes;
	private Integer failedTimes;
	private Long sendBytes;
	private Long recvBytes;
	private Timestamp lastRefreshTime;

	public CommFlow() {
	}

	public CommFlow(CommFlowId id, Timestamp lastRefreshTime) {
		this.id = id;
		this.lastRefreshTime = lastRefreshTime;
	}

	public CommFlow(CommFlowId id, Integer channelType, Integer connectedTimes,
			Integer successTimes, Integer failedTimes, Long sendBytes,
			Long recvBytes, Timestamp lastRefreshTime) {
		this.id = id;
		this.channelType = channelType;
		this.connectedTimes = connectedTimes;
		this.successTimes = successTimes;
		this.failedTimes = failedTimes;
		this.sendBytes = sendBytes;
		this.recvBytes = recvBytes;
		this.lastRefreshTime = lastRefreshTime;
	}

	public CommFlowId getId() {
		return this.id;
	}

	public void setId(CommFlowId id) {
		this.id = id;
	}

	public Integer getChannelType() {
		return channelType;
	}

	public void setChannelType(Integer channelType) {
		this.channelType = channelType;
	}

	public Integer getConnectedTimes() {
		return connectedTimes;
	}

	public void setConnectedTimes(Integer connectedTimes) {
		this.connectedTimes = connectedTimes;
	}

	public Integer getSuccessTimes() {
		return successTimes;
	}

	public void setSuccessTimes(Integer successTimes) {
		this.successTimes = successTimes;
	}

	public Integer getFailedTimes() {
		return failedTimes;
	}

	public void setFailedTimes(Integer failedTimes) {
		this.failedTimes = failedTimes;
	}

	public Long getSendBytes() {
		return this.sendBytes;
	}

	public void setSendBytes(Long sendBytes) {
		this.sendBytes = sendBytes;
	}

	public Long getRecvBytes() {
		return this.recvBytes;
	}

	public void setRecvBytes(Long recvBytes) {
		this.recvBytes = recvBytes;
	}

	public Timestamp getLastRefreshTime() {
		return this.lastRefreshTime;
	}

	public void setLastRefreshTime(Timestamp lastRefreshTime) {
		this.lastRefreshTime = lastRefreshTime;
	}

	@Override
	public String toString() {
		return "CommFlow{" +
				"id=" + id +
				", channelType=" + channelType +
				", connectedTimes=" + connectedTimes +
				", successTimes=" + successTimes +
				", failedTimes=" + failedTimes +
				", sendBytes=" + sendBytes +
				", recvBytes=" + recvBytes +
				", lastRefreshTime=" + lastRefreshTime +
				'}';
	}
}